#include "platform.h"
#include "frame.h"
#include "point2.h"
#include "texture.h"
#include "frame.h"
#include "rect.h"

Platform::Platform(){

	position =NULL;
	frame =NULL;
	texture =NULL;

	dead =false;
}

Platform::~Platform(){

	delete position;
	position =NULL;
//		delete frame;
	frame =NULL;
	delete texture;
	texture =NULL;
}

float Platform::get_xLo(){

	return position->x + frame->body->xLo;
}

float Platform::get_xHi(){

	return position->x + frame->body->xHi;
}

float Platform::get_yHi(){

	return position->x + frame->body->yHi;
}

float Platform::get_yLo(){

	return position->x + frame->body->yLo;
}
